Component({
    properties: {
        params: {
            type: null
        },
        data: {
            type: null
        }
    },
    data: {},
    lifetimes: {
        attached: function() {},
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        gohrefurl: function(e) {
            var t = e.currentTarget.dataset.item;
            if (t.hrefChoice && 2 == t.hrefChoice) if (t.appID) if (t.miniUrl) try {
                wx.navigateToMiniProgram({
                    appId: t.appID,
                    path: t.miniUrl,
                    extraData: {},
                    envVersion: "release",
                    success: function(e) {},
                    fail: function(e) {
                        wx.showToast({
                            title: "小程序跳转失败",
                            icon: "none",
                            duration: 2e3
                        });
                    }
                });
            } catch (e) {
                wx.showToast({
                    title: "小程序跳转失败",
                    icon: "none",
                    duration: 2e3
                });
            } else wx.showToast({
                title: "请设置跳转小程序后的跳转链接",
                icon: "none",
                duration: 2e3
            }); else wx.showToast({
                title: "请设置小程序所需跳转appId",
                icon: "none",
                duration: 2e3
            }); else {
                var n = t.hrefurl;
                try {
                    wx.navigateTo({
                        url: n
                    });
                } catch (e) {
                    wx.showToast({
                        title: "链接设置错误",
                        icon: "none",
                        duration: 2e3
                    });
                }
            }
        }
    }
});